
function generationPDF() {
    var query = Array();
    var input = document.getElementsByTagName('input');

	var unchecked = 0;
    for( var i = 0 ; i < input.length ; i++) {
		if (input[i].type == "checkbox") {
			if (input[i].checked == true)
				query.push(input[i].id + "=1");
			else
				unchecked++;
		}
    }

	if (unchecked == 0)
		window.location.assign("Pdf?all");
	else 
		window.location.assign("Pdf?only=" + unchecked + "&" + query.join("&"));
}